<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/12
  Time: 15:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <style type="text/css">
        .a {
            width: 60vw;
            margin: 0 auto;
            height: 550px;
            position: relative;
            top: 50px;
        }

    </style>
</head>
<body>
<div class="a">
    <form action="ClassServlet">
        <input type="hidden" name="action" value="${empty requestScope.c.id?"saveClass":"updateClass"}">
        <input type="hidden" name="id" value="${requestScope.c.id}">
        <table align="center" class="table table-hover">
            <thead align="center">
            <td colspan="4" align="center">班级信息修改</td>
            <tr>
                <td>id</td>
                <td>cname</td>
                <td colspan="2">操作</td>
            </tr>
            </thead>

            <tr align="center">
                <td>${requestScope.c.id}</td>
                <td><input name="cname" type="text" value="${requestScope.c.cname}"></td>
                <td colspan="2"><input type="submit" value="提交"/></td>
            </tr>
        </table>

    </form>
</div>

</body>
</html>
